﻿using MoveView.MyMath;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoveView.Model
{
    struct CAMERA
    {
        public XYZ vd;					//View direction vector
        public XYZ vu;					//View up direction
        public CameraCalc cc;
        public double focallength;		//Focal length along vd
        public double aperture;		    //Camera aperture
        public double eyesep;			//Eye separation
        public int screenwidth, screenheight;

        public CAMERA(XYZ vd, XYZ vu, double focallength, double aperture, double eyesep, int screenwidth, int screenheight)
        {
            this.vd = vd;
            this.vu = vu;
            this.focallength = focallength;
            this.aperture = aperture;
            this.eyesep = eyesep;
            this.screenwidth = screenwidth;
            this.screenheight = screenheight;
            this.cc = new CameraCalc(focallength);
        }
    }

    
}
